/*
 * $Id: RawCommand.java 9 2008-01-24 17:35:25Z jasta $
 *
 * Copyright (C) 2008 Josh Guilfoyle <jasta@devtcg.org>
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation; either version 2, or (at your option) any
 * later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 */

package org.devtcg.syncml.protocol;

import org.devtcg.syncml.model.DatabaseMapping;

import org.w3c.dom.*;

/** @deprecated */
public class RawCommand extends BaseCommand
{
	public RawCommand(String type)
	{
		super(type);
	}

	public String toString()
	{
		StringBuilder b = new StringBuilder();

		b.append("<" + getType() + ">\n");
		b.append("<CmdID>").append(getId()).append("</CmdID>\n");

		String raw = getRaw();

		if (raw != null)
			b.append(raw);

		b.append("</" + getType() + ">\n");

		return b.toString();
	}
}
